package com.lfx.concurrent;

public class Helper {


    public void handle(int count,char c) {
        System.out.println("\t\t处理：【" + count + "，" + c + "】开始。。。");

        for (int i = 0; i < count; i++) {
            slowly();
            System.out.print(c);
        }
        System.out.println("");
        System.out.println("\t\t处理：【" + count + "，" + c + "】结束！！！");
    }

    private void slowly() {
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
